<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
		 isELIgnored="false" session="true"%>

<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>

<%
	String path = request.getContextPath();

	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":"
			+ request.getServerPort() + path + "/";
%>



<!DOCTYPE html>

<html>

<head>

	<base href="<%=basePath%>

	">

	<title><s:message code="M_6900_PARAM_MANAGEMENT_TAG" /></title>


	<%@ include file="/page/comPage/comCSS.html"%>
	<%@ include file="/page/comPage/navbar.html"%>

	<style>
		body {
			padding-top: 60px;
		}

		.keyClass {
			color: blue;
			font-weight: bold;
		}

		.keyCss:after {
			float: right;
			content: '*';
			color: red;
		}

		#add_pamItem_btn {
			position: relative;
			margin-left:15px;
		}

		#dialogPamItemForm select {
			width : 200px;
		}
		#dialogPamItemForm input {
			width : 200px;
		}
		form .form-group {
			margin: 3px 0px;
		}
		.form-horizontal {
			padding-top: 10px;
		}
		.form-horizontal{
			padding-top: 0px;
			margin-top: -3px;
		}
	</style>
</head>

<body>

<div class="container-fluid">
	<div class="col-lg-12 col-md-12 col-sm-12 btnDivCss">
		<button class="btn btn-info" id="query_btn"><s:message code="QUERY_TAG" /></button>

		<button class="btn btn-primary" id="add_btn"><s:message code="ADD_TAG" /></button>

		<button class="btn btn-warning" id="update_btn"><s:message code="UPDATE_TAG" /></button>

		<button class="btn btn-primary" id="copy_btn"><s:message code="COPY_TAG" /></button>

		<button class="btn btn-danger" id="del_btn"><s:message code="DELETE_TAG" /></button>

		<button class="btn btn-success" id="save_btn"><s:message code="SAVE_TAG" /></button>

		<button class="btn btn-warning" id="rollback_btn"><s:message code="ROLLBACK_TAG" /></button>

		<button class="btn btn-primary" id="clear_btn"><s:message code="CLEAR_TAG" /></button>
	</div>

	<!-- Parameter信息 -->
			<div class="col-lg-4 col-md-4 col-sm-4 leftDiv">
           	 	<fieldset>
           	 		<legend><s:message code="PAM_INFO_TAG" /></legend>
            	</fieldset>
            	<div id="pamListDiv" class="col-md-10">
					<table id="pamListGrd" style="height: 1px"></table>
					<div id="pamListPg"></div>
				</div>
        	</div>

		<div class="col-lg-8 col-md-8 col-sm-8 rightDiv" style ="top:40px;">
			<div class="container">
				<div class="row rightDivUp">
			<!-- 产品代码 -->
			<div class="row">
				<!-- 产品代码 -->
				<%--<div class="row">
					<div class="col-lg-5 col-md-5 col-sm-5">
						<form id="pamConditionForm" class="row form-horizontal">

						</form>
					</div>
				</div>--%>

				<div class="col-lg-5 col-md-5 col-sm-5">
					<form id="pamConditionForm" class="row form-horizontal">

						<div class="form-group">
							<label class="control-label col-xs-4 keyCss" for="mdlIDSel"> <s:message code="MDL_ID_TAG" />
							</label>
							<div class="col-xs-6">
								<select id="mdlIDSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>

						<div class="form-group">
							<!-- 工艺路线 -->
							<label class="control-label col-sm-4 keyCss" for="pathIDSel"> <s:message code="PATH_ID_TAG" />
							</label>
							<div class="col-sm-6">
								<select id="pathIDSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>

						<%--<div class="form-group">
							<!-- 工艺路线版本 -->
							<label class="control-label col-sm-4 keyCss" for="pathVerSel"> <s:message code="PATH_VER_TAG" />
							</label>
							<div class="col-sm-6">
								<select id="pathVerSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>
--%>
						<%--<div class="form-group">
							<!-- 卡匣设定代码 -->
							<label class="control-label col-sm-4 keyCss" for="boxSetCodeSel"> 卡匣设定代码
							</label>
							<div class="col-sm-6">
								<select id="boxSetCodeSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>--%>

						<%--<div class="form-group">
							<!-- 站点版本 -->
							<label class="control-label col-sm-4 keyCss" for="opeVerTxt"> <s:message code="OPE_VER_TAG" />
							</label>
							<div class="col-sm-6">
								<input type="text" id="opeVerTxt" class="form-control" />
								&lt;%&ndash; <select id="opeVerSel" class="form-control"></select> &ndash;%&gt;
							</div>
						</div>--%>

					</form>
				</div>

				<div class="col-lg-5 col-md-5 col-sm-5">
					<form id="pamConditionForm" class="row form-horizontal">
						<div class="form-group">
							<!-- 站点序号 -->
							<label class="control-label col-sm-4 keyCss" for="opeNOSel"> <s:message code="OPE_NO_TAG" />
							</label>
							<div class="col-sm-6">
								<select id="opeNOSel" class="form-control" style="width: 100%;"></select>
							</div>
						</div>

						<div class="form-group">
							<!-- 站点代码 -->
							<label class="control-label col-sm-4 keyCss" for="opeIDTxt"> <s:message code="OPE_ID_TAG" />
							</label>
							<div class="col-sm-6">
								<%--<select id="opeIDTxt" class="form-control" style="width: 100%;"></select>--%>
								<input type="text" id="opeIDTxt" class="form-control" />
							</div>
						</div>


					</form>
				</div>
			</div>

			<div class="row" style="margin-top: 20px;height:20px;">
				<div class="col-lg-12 col-md-12 col-sm-12" >
					<button class="btn btn-primary " id="add_pamItem_btn" value="6900-01">
						<s:message code="ADD_TAG" />
					</button>
					<button class="btn btn-warning " id="upd_pamItem_btn">
						<s:message code="UPDATE_TAG" />
					</button>
					<button class="btn btn-danger " id="del_pamItem_btn">
						<s:message code="DELETE_TAG" />
					</button>
				</div>
			</div>

			<div class="row">
			<div class="col-lg-12 col-md-12 col-sm-12 rightDivDown" style="margin-top: 60px">
				<!-- Item信息列表 -->
					<div id="pamItemListDiv" class="col-lg-9 col-md-9 col-sm-9" style="height:200px;">
						<table id="pamItemListGrd" style="height: 1px"></table>
						<div id="pamItemListPg"></div>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>

<!-- 查询Q-time -->
<div id="queryPamDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:message code="QUERY_CONDITION_TAG" />
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<!-- <div class="row"> -->
				<form id="queryPamForm" class="row form-horizontal">
					<div class="form-group">
						<!-- 产品代码 -->
						<label class="control-label col-xs-4" for="queryPamDialog_mdlIDTxt"> <s:message code="MDL_ID_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="queryPamDialog_mdlIDTxt" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<!-- 工艺路线 -->
						<label class="control-label col-xs-4" for="queryPamDialog_pathIDTxt"> <s:message code="PATH_ID_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="queryPamDialog_pathIDTxt" class="form-control" />
						</div>
					</div>
					<%--<div class="form-group">
						<!-- 工艺路线版本 -->
						<label class="control-label col-xs-4" for="queryPamDialog_pathVerTxt"> <s:message code="PATH_VER_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="queryPamDialog_pathVerTxt" class="form-control" />
						</div>
					</div>--%>

				<%--	<div class="form-group">
						<!-- 站点序号 -->
						<label class="control-label col-xs-4" for="queryPamDialog_opeNOTxt"> <s:message code="OPE_NO_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="queryPamDialog_opeNOTxt" class="form-control" />
						</div>
					</div>--%>
					<div class="form-group ">
						<!-- 站点代码 -->
						<label class="control-label col-xs-4" for="queryPamDialog_opeIDTxt"> <s:message code="OPE_ID_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="queryPamDialog_opeIDTxt" class="form-control" />
						</div>
					</div>

					<%--<div class="form-group ">
						<!-- 站点版本 -->
						<label class="control-label col-xs-4" for="queryPamDialog_opeVerTxt"> <s:message code="OPE_VER_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="queryPamDialog_opeVerTxt" class="form-control" />
						</div>
					</div>--%>
					<!-- FROM HERE -->
					<div class="form-group ">
						<!-- 设备代码 -->
						<label class="control-label col-xs-4" for="queryPamDialog_toolIDTxt"> <s:message code="TOOL_ID_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="queryPamDialog_toolIDTxt" class="form-control" />
						</div>
					</div>
				</form>
				<!-- </div> -->
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="queryPamDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
				</a> <a id="queryPamDialog_queryBtn" class="btn btn-primary"> <s:message code="QUERY_BTN_TAG" />
			</a>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>

<!-- 添加或修改Q-time子项目-->
<div id="pamItemDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:message code="ADD_UPDATE_TAG" />
				</h4>

			</div>
			<!--Modal header-->
			<div class="modal-body">
				<!-- <div class="row"> -->
				<form id="dialogPamItemForm" class="row form-horizontal">
					<div class="form-group">
						<!-- 设备代码 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_toolIDSel"> <s:message code="TOOL_ID_TAG" />
						</label>
						<div class="col-xs-6">
							<select id="pamItemDialog_toolIDSel" class="form-control" style="width: 100%;"></select>
						</div>
					</div>

					<div class="form-group">
						<!-- 配方代码 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_recipeID"> <s:message code="RECIPE_NO_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="pamItemDialog_recipeIDTxt" class="form-control" />
						</div>
					</div>


					<%--<div class="form-group">
						<!-- 光罩代码 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_photomaskID"> 光罩代码
						</label>
						<div class="col-xs-6">
							<select id="pamItemDialog_photomaskIDTxt" class="form-control" style="width: 100%;"></select>
							<!-- <input type="text" id="pamItemDialog_photomaskIDTxt" class="form-control" /> -->
						</div>
					</div>--%>


					<div class="form-group">
						<!-- 激活标识 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_activeflgTag"> <s:message code="ACTIVE_FLG_TAG" />
						</label>
						<div class="col-xs-6">
							<select id="pamItemDialog_activeflgTag" class="form-control" style="width: 100%;"></select>
							<!-- <input type="text" id="pamItemDialog_activeflgTag" class="form-control" /> -->
						</div>
					</div>

					<%--<div class="form-group">
						<!-- 跳站标识 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_skipflgTag"> <s:message code="SKIP_FLG_TAG" />
						</label>
						<div class="col-xs-6">
							<select id="pamItemDialog_skipflgTag" class="form-control" style="width: 100%;"></select>
							<!-- <input type="text" id="pamItemDialog_skipflgTag" class="form-control" /> -->
						</div>
					</div>--%>


					<div class="form-group" hidden>
						<!-- 量测标识 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_mesIdTag"> <s:message code="MES_ID_TAG" />
						</label>
						<div class="col-xs-6">
							<select id="pamItemDialog_mesIdTag" class="form-control" style="width: 100%;"></select>
							<!-- 	<input type="text" id="pamItemDialog_mesIdTag" class="form-control" /> -->
						</div>
					</div>

					<div class="form-group" hidden>
						<!-- 是否限定重工次数 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_swhCntAddFlgTag"> <s:message code="SWH_CNT_ADD_FLG_TAG" />
						</label>
						<div class="col-xs-6">
							<select id="pamItemDialog_swhCntAddFlgTag" class="form-control" style="width: 100%;">
							</select>
							<!-- 	<input type="text" id="pamItemDialog_swhCntAddFlgTag" class="form-control" /> -->
						</div>
					</div>

					<%-- 	<div class="form-group">
						<!-- swh cnt add pos -->
							<label class="control-label col-xs-4 keyCss" for="pamItemDialog_swhCntAddPosTag"> <s:message code="SWH_CNT_ADD_POS_TAG" />
							</label>
							<div class="col-xs-6">
								<select id="pamItemDialog_swhCntAddPosTag" class="form-control">
								</select>
							</div>
						</div> --%>

					<div class="form-group" hidden>
						<!-- 最大重工次数 -->
						<label class="control-label col-xs-4 keyCss" for="pamItemDialog_swhMaxCntTag"> <s:message code="SWH_MAX_CNT_TAG" />
						</label>
						<div class="col-xs-6">
							<input type="text" id="pamItemDialog_swhMaxCntTag" class="form-control" />
						</div>
					</div>
				</form>
				<!-- </div> -->
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="pamItemDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
				</a> <a id="pamItemDialog_addPamItemBtn" class="btn btn-primary"> <s:message code="UPATE_COMMIT_TAG" />
			</a>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>

</body>
<%@ include file="/page/comPage/comJS.html"%>
<script type="text/javascript" src="js/page/6000/6900.js"></script>
<script src="lib/bootstrap/assets/js/bootstrap-tooltip.js"></script>

</html>